<template>
  <div class="shoppingcartone_one">
    <div class="shoppingcartone" v-for="item of shoppingcartonechild" :key="item.index">
      <div class="shoppingcartonechild_i">
        <i></i>
      </div>
      <div class="shoppingcartonechild_img">
        <img src alt>
      </div>
      <div class="shoppingcartonechild_productname">
        <p>{{item.title}}</p>
        <p>￥{{item.price}}</p>
      </div>
      <div class="shoppingcartonechild_input">
        <button>-</button>
        <input type="text" value="1">
        <button>+</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["shoppingcartonechild"],
  data() {
    return {};
  },
  created() {
    console.log(this.shoppingcartonechild);
  },
  methods: {
    getdata() {}
  }
};
</script>

<style scoped>
div.shoppingcartone_one {
  margin-top: 40px;
}
div.shoppingcartone {
  padding-top: 20px;
  padding-bottom: 20px;
  margin: 0 auto;
  border-bottom: 1px solid #fafafa;
  background: #ffffff;
}
div.shoppingcartonechild_i {
  position: relative;
  width: 20%;
  text-align: center;
  line-height: 60px;
}
div.shoppingcartonechild_i i {
  display: block;
  font-style: normal;
  border: 1px solid #f13e54;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  position: absolute;
  top: 20px;
  left: 15px;
}
div.shoppingcartone {
  display: flex;
  justify-content: space-between;
}
div.shoppingcartonechild_img {
  width: 100px;
  background: #f13e54;
  border-radius: 10px;
}
div.shoppingcartonechild_input {
  display: flex;
  justify-content: space-between;
}
div.shoppingcartonechild_productname {
  width: 70%;
  margin-left: 10px;
}
div.shoppingcartonechild_productname p:last-child {
  margin-top: 20px;
  color: #f13e54;
}
div.shoppingcartonechild_productname p:first-child {
  color: #252525;
}
div.shoppingcartonechild_input {
  height: 20px;
  margin-top: 40px;
  margin-right: 20px;
}
div.shoppingcartonechild_input input {
  width: 40px;
  text-align: center;
  outline: none;
  border: 1px solid #e2e2e2;
  background: none;
  height: 20px;
}
div.shoppingcartonechild_input button {
  outline: none;
  background: none;
  border: 1px solid #e2e2e2;
  height: 24px;
}
</style>
